package com.hongruan.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hongruan.bean.Menu;
import com.hongruan.service.BaseService;
import com.hongruan.service.MenuService;

@Service
@Transactional
public class MenuServiceImpl extends BaseService implements MenuService {

	public List<Menu> getMenuList(Integer level) {
		return this.menuDao.getMenuList(level);
	}

	public void save(Menu menu) {
		this.menuDao.create(menu);
	}
	
	public List<Menu> getMenuListById(Long id){
		return this.menuDao.getMenuListById(id);
	}

}
